package com.hong.service_product.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hong.fy_common_commomutil.common.result.Result;
import com.hong.fy_model.model.product.ProductCategoryEntity;

import java.util.List;

/**
 * 
 *
 * @author wqh
 * @email 1601709391@qq.com
 * @date 2022-06-15 20:37:30
 */
public interface ProductCategoryService extends IService<ProductCategoryEntity> {
    //新增商品分类
    Result addProductCategory(ProductCategoryEntity productCategory);
    //逻辑删除商品分类
    Boolean logicDeleteProductCategory(Integer categoryId);
    //更新商品分类
    Boolean updateProductCategory(ProductCategoryEntity productCategory);
    //分页查询商品分类
    IPage<ProductCategoryEntity> getProductCategoryListByPage(Integer pageNum, Integer limit);
    //查询所有商品分类
    List<ProductCategoryEntity> getProductCategoryList();
    //根据商品分类id查询商品分类
    ProductCategoryEntity getProductCategoryById(Integer categoryId);


}

